function startTime(){
var today=new Date();
//var Y=today.getFullYear();
//var M=today.getMonth();
//var D=today.getDate();
//var w=today.getDay();
var h=today.getHours();
var m=today.getMinutes();
var s=today.getSeconds();
h=checkTime(h);
m=checkTime(m);
s=checkTime(s);
document.getElementById('clock').innerHTML=h+":"+m+":"+s;
t=setTimeout('startTime()',500);
function checkTime(i)
{
if(i<10){i="0" + i;}
  return i;
  }
}